package com.kongge.viewdisplayframeworklib.landscape;

public class ActivityLifePriod {

	// ~常量区块
	// ========================================================
	public static final int ACTIVITY_STATE_IDLE       = 0;
	public static final int ACTIVITY_STATE_CREATE     = 1;
	public static final int ACTIVITY_STATE_RESTART    = 2;
	public static final int ACTIVITY_STATE_START      = 3;
	public static final int ACTIVITY_STATE_STOP       = 4;
	public static final int ACTIVITY_STATE_PAUSE      = 5;
	public static final int ACTIVITY_STATE_RESUME     = 6;
	public static final int ACTIVITY_STATE_DESTORY    = 7;

	// ~成员变量区块
	// ========================================================
	public boolean          isWaitingForResult = false;
	
	public int              mState = ACTIVITY_STATE_IDLE;

	// ~构造函数区块
	// ========================================================

	// ~方法区块
	// ========================================================
	public boolean isOnBackgroup() {
		return (mState == ACTIVITY_STATE_STOP 
				|| mState == ACTIVITY_STATE_PAUSE
				|| mState == ACTIVITY_STATE_DESTORY
				);
	}

	// ~静态方法区块
	// ========================================================

	// ~内部接口（类）区块
	// ========================================================

}
